package com.trickytriads.services.local
{
	import com.trickytriads.events.GetAllCardsEvent;
	import com.trickytriads.services.interfaces.I_AssetService;
	
	import mx.controls.Alert;

	/**
	 *  Local filesystem implementation of the asset service.
	 **/
	public class AssetServiceImpl_LocalFileSystem implements I_AssetService
	{
		// Base path for the filesystem.  Will be injected in the Parsley config.
		private var _baseURL:String;	

		public function getImageURL(name:String):String
		{
			return (BaseURL + name);
		}
		
		[MessageHandler(selector="getAllCardsRequest")]
		public function getAllCardsData (evt:GetAllCardsEvent) : void
		{
			Alert.show("Error: getAllCardsData is not implemented for the LocalFileSystem yet.");	
		}
		
		public function get BaseURL ( ) : String { return _baseURL; }
		public function set BaseURL (v:String) : void { _baseURL = v; }
	}
}